package cn.java78.springboot.myschool.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
 * @author oldliu
 * @since 1.0
 */
//@Configuration
@Component
@ConfigurationProperties(prefix = "sms")
//@JsonIgnoreProperties({"$$beanFactory"})
public class SMSConfig {
    private String name;
    private String[]supportYun;

    private  Map<String,String> prices=new HashMap<>();

    @Override
    public String toString() {
        return "SMSConfig{" +
                "name='" + name + '\'' +
                ", supportYun=" + Arrays.toString(supportYun) +
                ", prices=" + prices +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getSupportYun() {
        return supportYun;
    }

    public void setSupportYun(String[] supportYun) {
        this.supportYun = supportYun;
    }

    public Map<String, String> getPrices() {
        return prices;
    }

    public void setPrices(Map<String, String> prices) {
        this.prices = prices;
    }
}
